package enums.common;

import java.util.ArrayList;
import java.util.List;

/**
 * 类的类型
 */
public enum RuleEnum {
	FIRST_LOWER (0, "首字母小写"),
	FIRST_UPPER (1, "首字母大写"),
	;

	// 类后缀
	private int code;
	// 备注
	private String remark;

	private RuleEnum(int code, String remark) {
		this.code = code;
		this.remark = remark;
	}

	public int getCode() {
		return code;
	}

	public void setCode(int code) {
		this.code = code;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	/**
	 * 获取枚举 List 集合
	 */
	public static List<RuleEnum> getEnumList() {
		List<RuleEnum> list = new ArrayList<>();
		for (RuleEnum clazzTypeEnum : RuleEnum.values()) {
			list.add(clazzTypeEnum);
		}
		return list;
	}

}
